<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/8/23
 * Time: 11:31
 */
?>


<div class="yx-clear">
    <label class="zx-label" style="width: 20% !important"><?= $model->attributeLabels()['customer_id']; ?></label>
    <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
        <?=isset($model->customer)?$model->customer->name:''; ?>
    </div>
</div>
<div class="yx-clear">
    <label class="zx-label" style="width: 20% !important"><?= $model->attributeLabels()['mechanic_id']; ?></label>
    <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
        <?=isset($model->mechanic)?$model->mechanic->name:''; ?>
    </div>
</div>
<div class="yx-clear">
    <label class="zx-label" style="width: 20% !important"><?= $model->attributeLabels()['service_level']; ?></label>
    <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
        <?=!empty($service[$model->service_level])?$service[$model->service_level]:''; ?>
    </div>
</div>
<div class="yx-clear">
    <label class="zx-label" style="width: 20% !important"><?= $model->attributeLabels()['teaching_level']; ?></label>
    <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
        <?=!empty($teaching[$model->teaching_level])?$teaching[$model->teaching_level]:'' ?>
    </div>
</div>
<div class="yx-clear">
    <label class="zx-label" style="width: 20% !important"><?= $model->attributeLabels()['environmental_level']; ?></label>
    <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
        <?=!empty($environmental[$model->environmental_level])?$environmental[$model->environmental_level]:''; ?>
    </div>
</div>
<div class="yx-clear">
    <label class="zx-label" style="width: 20% !important"><?= $model->attributeLabels()['complaint_content']; ?></label>
    <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
        <?=$model->complaint_content ?>
    </div>
</div>
<div class="yx-clear">
    <label class="zx-label" style="width: 20% !important"><?= $model->attributeLabels()['status']; ?></label>
    <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
        <?php
        switch($model->status){
            case 0:
                echo '用户已提交';
                break;
            case 1:
                echo '处理中';
                break;
            case 2:
                echo '处理成功';
                break;
            case 3:
                echo '驳回投诉';
        }
        ?>
    </div>
</div>
<div class="yx-clear">
    <label class="zx-label" style="width: 20% !important">处理备注</label>
    <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
        <?php
        $str = str_replace(array("\r\n", "\r", "\n"), "<br>", $model->remarks);
        echo $str;
        ?>
    </div>
</div>
<div class="yx-clear">
    <label class="zx-label" style="width: 20% !important">是否满意</label>
    <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
        <?php
        if($model->is_satisfied == 2){
            echo '不满意';
        }elseif($model->is_satisfied == 1){
            echo '满意';
        }else{
            echo '--';
        }
        ?>
    </div>
</div>
<div class="yx-clear">
    <label class="zx-label" style="width: 20% !important">投诉时间</label>
    <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
        <?= \Yii::$app->formatter->asDatetime($model->created_at);?>
    </div>
</div>

